package com.treasure.mall.biz.repository.order;

import com.treasure.mall.biz.base.JpaSearchableRepository;
import com.treasure.mall.biz.entity.order.DeliverBillPO;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/6/11
 */
@Repository
public interface DeliverRepository extends JpaSearchableRepository<DeliverBillPO, String> {
    DeliverBillPO findTopByExpressComCodeAndExpressNo(String comCode, String expressNo);

    List<DeliverBillPO> findBySubOrderId(String subOrderId);

    List<DeliverBillPO> findByReceivedIsFalseAndLastReceivedTimeLessThanEqual(LocalDateTime time);
}
